package main

import "fmt"

func main() {
	sum := 1
	for i := 3; i <= 1001; i += 2 {
		sum += i*i*4 - (i-1)*6
	}
	fmt.Println(sum)
}
